package com.fay.designPattern.principles.solid;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/2 16:39
 * @Version 1.0
 */
public abstract class TestCase {
    public abstract boolean doTest();

    public void run() {
        if (doTest()) {
            System.out.println("Test succeed");
        } else {
            System.out.println("Test failed");
        }
    }
}
